$(function() {
    if (typeof(Storage) !== "undefined")
    {

        if (sessionStorage.check_get_info_setting != 1) {
            $.post(localStorage.domain_app+"/webservice/getUserById.php", {
                user_id: localStorage.userID,
                email: localStorage.email
            }, function(res) {
                sessionStorage.check_get_info_setting = 1;
                if ($('input[name="firstname"]')[0]) {
                    $('input[name="firstname"]').val(res.fn);
                    sessionStorage.setting_fn = res.fn;

                }
                if ($('input[name="lastname"]')[0]) {
                    $('input[name="lastname"]').val(res.ln);
                    sessionStorage.setting_ln = res.ln;
                }

            }, "json");
        }
    }


});